#pragma once

#include <stdio.h>
#include <windows.h>
#include <string.h>

#define CODE 123456
#define CODENUM 6
#define MAX 30
#define NAMEMAX 20

int CodeInput();

void Menu();

void InitContent(struct Student* p);

void DisplayContent(struct Contact* p);

void Average(struct Contact* p);

void ScoreSort(struct Contact* p);

void NumSort(struct Contact* p);

void Search(const struct Contact* p);

void Statistics(struct Contact* p);

struct Student 
{
	char name[NAMEMAX];
	int num;
	int mark;
};

struct Contact
{
	struct Student data[MAX];
	int size;
};